import request from "@/utils/request";

/**
 * @description 技能培训列表
 * @param data
 * @returns {Promise}
 */
export function getTrainingListApi(params) {
    return request({
        url: '/getTrainingList',
        method: 'get',
        params
    })
}
/**
 * @description 技能培训详情
 * @param data
 * @returns {Promise}
 */
export function getTrainingApi(params) {
    return request({
        url: '/getTraining',
        method: 'get',
        params
    })
}
/**
 * @description 政策详情
 * @param data
 * @returns {Promise}
 */
export function getNewByIdApi(params) {
    return request({
        url: '/news/getNewById',
        method: 'get',
        params
    })
}
/**
 * @description 技能培训列表
 * @param data
 * @returns {Promise}
 */
export function getVideoListApi(params) {
    return request({
        url: '/getVideoTrainList',
        method: 'get',
        params
    })
}
/**
 * @description 报名
 * @param data
 * @returns {Promise}
 */
export function groupTrainEnroll(data) {
    return request({
        url: '/groupTrainEnroll',
        method: 'post',
        data
    })
}
/**
 * @description 查询是否报名
 * @param data
 * @returns {Promise}
 */
export function findTrainEnrollApi (data) {
    return request({
        url: '/findTrainEnroll ',
        method: 'get',
        data
    })
}